To move one way then the other, or in unpredictable erratic gyrations.
Abrupt changes in direction or orientation (often used figuratively).